package com.scu.hotelsystem.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.scu.hotelsystem.util.Tag;

import java.util.Date;

public class Manager {
    public static final String MALE = "男";
    public static final String FEMALE = "女";

    private int id;
    private String name;
    private String phone;
    private String resdId;
    private String password;
    private String gender;
    private Date addTime;
    private int tag;

    public Manager() {
        this.tag = Tag.VALID;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getResdId() {
        return resdId;
    }

    public void setResdId(String resdId) {
        this.resdId = resdId;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    public Date getAddTime() {
        return addTime;
    }

    public void setAddTime(Date addTime) {
        this.addTime = addTime;
    }

    public int getTag() {
        return tag;
    }

    public void setTag(int tag) {
        this.tag = tag;
    }
}
